package com.itheima.sc.service.ums;

import com.itheima.sc.api.ums.UmsMemberLevelApi;
import com.itheima.sc.pojo.ums.UmsMemberLevel;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UmsMemberLevelService {
    @DubboReference
    private UmsMemberLevelApi umsMemberLevelApi;

    /**
     * 查询所有会员等级
     */
    public List<UmsMemberLevel> list() {
        return umsMemberLevelApi.list();
    }
}
